import {getRequest, postRequest} from "@/api/axios";

export const doGetStudentByPage = (pageNum,pageSize)=>getRequest('student/getStudent',{pageNum,pageSize});

export  const doAddStudent = (student) =>postRequest('student/register',student);

export  const  doUpdateStduent = (student)=>postRequest('student/update',student);

export const doDeleteStudent = (id)=>getRequest('student/delete',{id});

export const doGetStudent = (id)=>getRequest('student/getStudentById',{id});

export const doLoginStudent = (username,password)=>getRequest('student/login',{username,password});
